#!/bin/bash

function bmp2yuv()
{
    ./csctool Three_women_1920x1080.bmp Three_women_1920x1080.yuv 1 1920 1080 3
}

function yuv2bmp()
{
    ./csctool Three_women_1920x1080.yuv Three_women_1920x1080.bmp 0 1920 1080 3
}

if [ $1 -eq 1 ]
then 
    bmp2yuv
else
    yuv2bmp
fi
